﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <PathGeometry x:Key="CloseTabCrossGeometry">
        <PathFigure StartPoint="-1, -1">
            <LineSegment Point="-0.6, -1"/>
            <LineSegment Point="0, -0.4"/>
            <LineSegment Point="0.6, -1"/>
            <LineSegment Point="1, -1"/>
            <LineSegment Point="1, -0.6"/>
            <LineSegment Point="0.4, 0"/>
            <LineSegment Point="1, 0.6"/>
            <LineSegment Point="1, 1"/>
            <LineSegment Point="0.6, 1"/>
            <LineSegment Point="0, 0.4"/>
            <LineSegment Point="-0.6, 1"/>
            <LineSegment Point="-1, 1"/>
            <LineSegment Point="-1, 0.6"/>
            <LineSegment Point="-0.4, 0"/>
            <LineSegment Point="-1, -0.6"/>
        </PathFigure>
    </PathGeometry>

    <RectangleGeometry x:Key="CloseTabPadGeometry" RadiusX="0.5" RadiusY="0.5" Rect="-1.75, -1.75, 3.5, 3.5"/>
    
    <DrawingImage x:Key="CloseTabImage">
        <DrawingImage.Drawing>
            <DrawingGroup>
                <GeometryDrawing Brush="#999999">
                    <GeometryDrawing.Geometry>
                        <GeometryGroup>
                            <GeometryGroup.Transform>
                                <TranslateTransform X="0.25" Y="0.25"/>
                            </GeometryGroup.Transform>
                            <StaticResourceExtension ResourceKey="CloseTabPadGeometry"/>
                        </GeometryGroup>
                    </GeometryDrawing.Geometry>
                </GeometryDrawing>
                <GeometryDrawing Geometry="{StaticResource CloseTabPadGeometry}">
                    <GeometryDrawing.Brush>
                        <LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5, 1">
                            <GradientStop Offset="0" Color="#FECFCB"/>
                            <GradientStop Offset="1" Color="#DF2020"/>
                        </LinearGradientBrush>
                    </GeometryDrawing.Brush>
                </GeometryDrawing>
                <GeometryDrawing Brush="White" Geometry="{StaticResource CloseTabCrossGeometry}"/>
            </DrawingGroup>
        </DrawingImage.Drawing>
    </DrawingImage>
</ResourceDictionary>